package com.doudou.dubbo.samples.order.service;

import com.doudou.dubbo.samples.order.api.OrderService;
import com.doudou.dubbo.samples.order.po.Order;
import com.doudou.dubbo.samples.order.po.OrderDetail;
import org.apache.dubbo.config.annotation.DubboService;

@DubboService
public class OrderServiceImplGray implements OrderService {
    @Override
    public OrderDetail submitOrder(Order order) {
        OrderDetail orderDetail = new OrderDetail();
        orderDetail.setEnv("gray");
        orderDetail.setAddress(order.getAddress());
        orderDetail.setReceiver(order.getReceiver());
        orderDetail.setPhone(order.getPhone());
        return orderDetail;
    }
}
